//
//  MainViewController.m
//  0819QFangWang
//
//  Created by ding on 15/8/20.
//  Copyright © 2015年 ding. All rights reserved.
//

#import "MainViewController.h"

@interface MainViewController ()

@end

@implementation MainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    HomeViewController *homeVc = [[HomeViewController alloc] init];
    homeVc.title = @"主页";
    MapViewController *mapVc = [[MapViewController alloc] init];
    mapVc.title = @"地图";
    QChatViewController *qChatVc = [[QChatViewController alloc] init];
    qChatVc.title = @"Q聊";
    MeViewController *meVc = [[MeViewController alloc] init];
    meVc.title = @"我的";
    [self addChildVC:homeVc];
    [self addChildVC:mapVc];
    [self addChildVC:qChatVc];
    [self addChildVC:meVc];
}


- (void)addChildVC:(UIViewController *)rootVc {
    
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:rootVc];

    [self addChildViewController:nav];
}


@end
